home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 414_01 / makefile < prev    next >
Makefile  |  1993-11-29  |  25KB  |  629 lines

  1. #
  2. #########################################################################
  3. #
  4. # makefile for The Hessling Editor (THE)
  5. #
  6. #########################################################################
  7. #
  8. # THE - The Hessling Editor. A text editor similar to VM/CMS xedit.
  9. # Copyright (C) 1991-1993 Mark Hessling
  10. #
  11. # This program is free software; you can redistribute it and/or
  12. # modify it under the terms of the GNU General Public License as
  13. # published by the Free Software Foundation; either version 2 of
  14. # the License, or any later version.
  15. #
  16. # This program is distributed in the hope that it will be useful,
  17. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  19. # General Public License for more details.
  20. #
  21. # You should have received a copy of the GNU General Public License
  22. # along with this program; if not, write to:
  23. #
  24. #    The Free Software Foundation, Inc.
  25. #    675 Mass Ave,
  26. #    Cambridge, MA 02139 USA.
  27. #
  28. #
  29. # If you make modifications to this software that you feel increases
  30. # it usefulness for the rest of the community, please email the
  31. # changes, enhancements, bug fixes as well as any and all ideas to me.
  32. # This software is going to be maintained and enhanced as deemed
  33. # necessary by the community.
  34. #
  35. # Mark Hessling                     email: M.Hessling@gu.edu.au
  36. # 36 David Road                     Phone: +61 7 849 7731
  37. # Holland Park                      Fax:   +61 7 875 5314
  38. # QLD 4121
  39. # Australia
  40. #
  41. #########################################################################
  42. #
  43. # The available features of curses library are different on just about 
  44. # every machine. System V curses has more features that BSD curses, so if
  45. # your system gives you a choice of curses libraries, use the System V one.
  46. # The later the version of your System V operating system, the more features
  47. # are supplied in the curses library and the more features THE can use.
  48. # To help you determine which of the options below should be used, then
  49. # the following will help.
  50. #
  51. # Determine where your curses.h file is located. It is generally in
  52. # /usr/include or /usr/5include. 
  53. # Once you know the location of curses.h, run the following commands:
  54. #
  55. # grep A_COLOR /usr/include/curses.h  (or whereever your curses.h file is)
  56. # If this results in any output, then use the System V R3.2 section.
  57. # next try:
  58. # grep attrset /usr/include/curses.h  (or whereever your curses.h file is)
  59. # If this results in any output, then use the System V R3.1 section.
  60. # If neither of these commands resulut in any output, then I'm affraid you
  61. # will have to use the BSD option.
  62. #
  63. # If when you compile and link THE, you get errors, then you might have to
  64. # come down one version. eg If you used the System V R3.2 section and got
  65. # errors, try using the System V 3.1 section.
  66. #
  67. #########################################################################
  68. #
  69. # THE is REXX-aware under all platforms; DOS, OS/2 and Unix.
  70. # By default, the OS/2 REXX support is enabled when compiling with the
  71. # C Set/2 compiler, as this is the only platform where one is almost
  72. # guaranteed to have REXX support available.
  73. #
  74. # To enable REXX support under Unix you need to do the following:
  75. # - obtain version 0.05d or later of Regina from flipper.pvv.unit.no
  76. #   in /pub/rexx. The file is called regina-0.05d.tar.Z
  77. #   you can also get Regina from rexx.uwaterloo.ca in /pub/freerexx/regina
  78. # - check the README file to see if your platform is supported.
  79. #   if it isn't, then ignore the rest of these instructions :-)
  80. # - build regina as per its instructions
  81. #   this should result in a rexx executable file and a libregina.a file
  82. # - copy rexxsaa.h from the regina src directory into the THE source
  83. #   directory. Also copy libregina.a from the regina src directory into
  84. #   the THE source directory. You may need to run ranlib again on the
  85. #   libregina.a file)
  86. # - append to the LD variable "-L. -lregina"
  87. # - append to the CFLAGS variable "-DUSE_REGINA"
  88. # - remove "-DNOREXX" from the CFLAGS variable
  89. # - copy/move the rexx executable into a directory in your PATH
  90. #
  91. #########################################################################
  92. #$Header: C:\THE\RCS\makefile 1.4 1993/09/01 16:26:39 MH Interim MH $
  93. #########################################################################
  94.  
  95. VER = 15
  96. PROJ = proj   # this will get replaced by uncommenting a section
  97. MAN  = man    # this will get replaced by uncommenting a section
  98.  
  99. #########################################################################
  100. # Borland C++ 2.0 and above compiler on DOS - with Personal REXX (incomplete)
  101. #########################################################################
  102. #SRC       = c:/the
  103. #PROJ      = the.exe
  104. #OBJ       = obj
  105. #CC        = bcc
  106. #CURSINC   = -Ic:/curses
  107. #CFLAGS    = -O -d -K -w-aus -w-par -ml -DPROTO -DUSE_QUERCUS -I$(SRC) $(CURSINC)
  108. #LD        = tlink @dos-trc.rsp
  109. #XTRAOBJ   = getopt.obj rxiface.obj
  110. #MAN       = manext.exe
  111. #MANLD     = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
  112. #CHMODTHE  =
  113. #CHMODMAN  =
  114. #########################################################################
  115. # Borland C++ 2.0 and above compiler on DOS - without Personal REXX
  116. #########################################################################
  117. #SRC       = c:/the
  118. #PROJ      = the.exe
  119. #OBJ       = obj
  120. #CC        = bcc
  121. #CURSINC   = -Ic:/curses
  122. #CFLAGS    = -O -d -K -w-aus -w-par -ml -DPROTO -DNOREXX -I$(SRC) $(CURSINC)
  123. #LD        = tlink @dos-trcx.rsp
  124. #XTRAOBJ   = getopt.obj
  125. #MAN       = manext.exe
  126. #MANLD     = tlink /c /Td c:\c\lib\c0l+manext+getopt+c:\c\lib\wildargs,manext,,c:\c\lib\cl.lib
  127. #CHMODTHE  =
  128. #CHMODMAN  =
  129. #########################################################################
  130. # MSC 6.0ax compiler on DOS
  131. #########################################################################
  132. #SRC       = c:/the
  133. #PROJ      = the.exe
  134. #OBJ       = obj
  135. #CC        = cl
  136. #CURSINC   = -Ic:/curses
  137. #CFLAGS    = -O -J -EM -AL -DSTDC_HEADERS -DPROTO -DNOREXX -I$(SRC) $(CURSINC)
  138. #LD        = link @dos-msc.rsp
  139. #XTRAOBJ   = getopt.obj
  140. #MAN       = manext.exe
  141. #MANLD     = link manext+getopt+c:\c600\lib\setargv,,,c:\c600\lib\Llibce /CO /NOE /NOI /NOD;
  142. #CHMODTHE  =
  143. #CHMODMAN  =
  144. #########################################################################
  145. # djgpp compiler on DOS - no REXX (should be complete with djgpp 1.11)
  146. #########################################################################
  147. #SRC       = c:/the
  148. #PROJ      = the
  149. #OBJ       = o
  150. #CC        = gcc
  151. #CURSINC   = -Ic:/curses
  152. #CURSLIB   = c:/djgpp/curses/curseso.a
  153. #REXXINC   =
  154. #REXXLIB   =
  155. #CFLAGS    = -O -D__MSDOS__ -DSTDC_HEADERS -DNOREXX -DPROTO -I$(SRC) $(CURSINC) -o$*.o
  156. #LD        = $(CC) -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB)
  157. #XTRAOBJ   =
  158. #MAN       = manext
  159. #MANLD     = $(CC) -o manext manext.o -Lc:/djgpp/lib
  160. #CHMODTHE  = aout2exe $(PROJ)
  161. #CHMODMAN  = aout2exe $(MAN)
  162. #########################################################################
  163. # djgpp compiler on DOS with Regina 0.05i (should be complete with djgpp 1.11)
  164. #########################################################################
  165. #SRC       = c:/the
  166. #PROJ      = the
  167. #OBJ       = o
  168. #CC        = gcc
  169. #CURSINC   = -Ic:/curses
  170. #CURSLIB   = c:/djgpp/curses/curseso.a
  171. #REXXINC   = -If:/regina-d/src
  172. #REXXLIB   = -Lf:/regina-d/src -lrexx -lsaa -lrexx
  173. #CFLAGS    = -O -D__MSDOS__ -DSTDC_HEADERS -DUSE_REGINA -DPROTO -I$(SRC) $(CURSINC) $(REXXINC) -o$*.o
  174. #LD        = $(CC) -O -o $(PROJ) @dos-go32.rsp -Lc:/djgpp/lib $(CURSLIB) $(REXXLIB)
  175. #XTRAOBJ   =
  176. #MAN       = manext
  177. #MANLD     = $(CC) -o manext manext.o -Lc:/djgpp/lib
  178. #CHMODTHE  = aout2exe $(PROJ)
  179. #CHMODMAN  = aout2exe $(MAN)
  180. #########################################################################
  181. # MSC 6.0ax compiler on OS/2
  182. #########################################################################
  183. #SRC       = c:/the
  184. #PROJ      = the.exe
  185. #OBJ       = obj
  186. #CC        = cl
  187. #CURSINC   = -Ic:/curses
  188. #CFLAGS    = -O -J -EM -AL -D__OS2__ -DSTDC_HEADERS -DPROTO -DUSE_OS2_H -I$(SRC) $(CURSINC)
  189. #LD        = link @os2-msc.rsp
  190. #XTRAOBJ   = getopt.obj
  191. #MAN       = manext.exe
  192. #MANLD     = link manext+getopt+c:\c600\os2lib\setargv,,,c:\c600\o